package com.ssy.lingxi.platform.manage.model.request.content;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 内容能力-标签管理 - 新增/修改 - 请求实体类
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/18
 */
@Data
public class MemberLabelRequest {

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "主键id不能为空", groups = {MemberLabelRequest.Update.class})
    private Long id;

    @ApiModelProperty(value = "标签名称")
    @NotEmpty(message = "标签名称不能为空", groups = {MemberLabelRequest.Add.class, MemberLabelRequest.Update.class})
    private String name;

    @ApiModelProperty(value = "标签说明")
    private String explain;

    public interface Add {
    }

    public interface Update {
    }
}
